package com.supconit.video.controller;


import com.supconit.video.service.MonitorService;

import com.supconit.video.utils.AjaxMessage;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Copyright@ 浙江浙大中控信息技术有限公司
 *
 * @ClassName MonitorController
 * @Description TODO
 * @Author YANJUN.WAN
 * @Date 2021/6/4 13:34
 */
@RestController
@RequestMapping({"/project/develop/VideoSurveillance"})
public class VideoSurveillanceController {

    @Resource
    private MonitorService monitorService;
    @GetMapping("/previewURL")
    public AjaxMessage GetCameraPreviewURL(@RequestParam String cameraCode) {

        return monitorService.getPreviewURLs(cameraCode);
    }

}
